package edu.sctu.xuping.month05.day20150506;

/**
 * Created by user16 on 2015/5/6.
 */
public abstract class Book1 extends Book implements BookSale {
    static int booknumber = 678909;
    String bookserial = "7990";

    public Book1() {
        booktype = "computer";
        bookprice = 90;
    }

    public static void main(String args[]) {
        Book1 book1 = new Book1() {
            @Override
            public void show(String Title) {

            }
        };
        book1.show("计算机文件基础");
        book1.sale();
        book1.replay();
    }

    public void show() {
        System.out.println("书的名称:" + title);
        System.out.println("书的类型:" + booktype);
        System.out.println("书的价格:" + bookprice);
    }

    public void sale() {
        System.out.println("书的编号:" + booknumber);
    }

    public void replay() {
        System.out.println("书的订购:" + bookserial);
    }
}
